package com.xjj.service.feign;

import com.xjj.entity.Manager;
import com.xjj.entity.Parent;
import com.xjj.entity.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : 王泰元
 * @date : 2022/10/20 15:58
 */
@FeignClient(value = "manage")
public interface ManagerFeignClient {

    @PostMapping("/manage/admin/manager/getByAccount/{account}")
    ResponseEntity<Manager> getByAccount(@PathVariable("account") String account);

    @GetMapping("/manage/api/parent/login/{tel}")
    ResponseEntity<Parent> login(@PathVariable("tel") String tel);

}
